
<?php echo $this->assign('title', 'Administraci&oacute;n de Tags'); ?>

<div class="well">

	<legend>Tags</legend>

	<div class="btn-toolbar">
	<?php echo $this->Html->link('<i class="icon-plus-sign icon-white"></i> Agregar Tag', array('action' => 'add'), array('class' => 'btn btn-primary', 'escape' => false)); ?>
	</div>

	<table class="table table-striped">
	
	 <?php echo $this->Html->tableHeaders(array('Nombre', 'Modificar')); ?>

    <?php foreach ($tags as $tag): ?>
    <tr>
		<td><?php echo $this->Html->link('<i class="icon-share-alt"></i> '.$tag['Tag']['nombre'], array('action' => 'view', $tag['Tag']['id']), array('escape' => false, 'title' => 'Ver Detalles'));?></td>
		<td>
            <?php echo $this->Html->link('<i class="icon-pencil icon-white"></i>', array('action' => 'edit', $tag['Tag']['id']), array('class' => 'btn btn-primary', 'escape' => false, 'title' => "Editar"));
				echo " "; echo $this->Form->postLink('<i class="icon-trash icon-white"></i>', array('action' => 'delete', $tag['Tag']['id']),
				array('confirm' => 'Esta seguro que desea eliminar el tag?', 'class' => 'btn btn-primary', 'escape' => false, 'title' => "Eliminar")); ?>
        </td>
    </tr>
    <?php endforeach; ?>

	</table>

<?php echo $this->Html->link('Volver', array('controller' => 'admin', 'action' => 'index'), array('class' => 'btn btn-primary')); ?>
</div>